package com.econ.powercloud.ems.common.enums;

public enum ConfigColumnEnums {

    EPPT ("Eppt","正向有功(总)"),
    EPP1 ("Epp1","正向有功(尖)"),
    EPP2 ("Epp2","正向有功(峰)"),
    EPP3 ("Epp3","正向有功(平)"),
    EPP4 ("Epp4","正向有功(谷)"),

    ENPT ("Enpt","反向有功(总)"),
    ENP1 ("Enp1","反向有功(尖)"),
    ENP2 ("Enp2","反向有功(峰)"),
    ENP3 ("Enp3","反向有功(平)"),
    ENP4 ("Enp4","反向有功(谷)"),

    CHARGEFEE ("chargeFee","充/用电电费总计"),
    DISCHARGEFEE ("dischargeFee","放电电费总计"),
    SAVEFEE ("saveFee","本期节约费用"),

    SHARERATIO ("shareRatio","分享比例"),
    SHAREFEE ("shareFee","本期节约费用乙方分享金额"),
    ;
    private String code;
    private String desc;


    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ConfigColumnEnums(String code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public static ConfigColumnEnums fromCode(String code){
        for(ConfigColumnEnums type: ConfigColumnEnums.values()){
            if(type.getCode().equals(type)){
                return type;
            }
        }
        return null;
    }
}
